package com.ltmall.api.manager;

import com.ltmall.api.bean.CrazyCompetition;
import com.ltmall.api.bean.CrazyCompetitionMember;
import com.ltmall.api.bean.WalletGiftCard;

import java.util.List;

public interface CrazyManager {
    //加入疯抢
    public boolean addMember(CrazyCompetitionMember member);

    //最大期数
    public int maxPhase();

    //活动详情
    public CrazyCompetition getCompetition(int phase);

    //获取疯抢会员
    public List<CrazyCompetitionMember> getCompetitionMember(int phase, int cardID, int station);

    //获取礼品卡
    public WalletGiftCard getCard(int cardID);

    //获取疯抢会员
    public CrazyCompetitionMember getCompetitionMember(int number);

    //获取疯抢次数
    public int getCompetitionNuber(int phase, int cardID, int userID);

    //获取带头像的参与者信息
    public List<?> getCompetitionMemberWithPhoto(int phase, int cardID);

    //修改中奖信息
    public boolean updateWinner(int phase, String cardID, String winner);

    //修改状态
    public boolean updatePhaseStation(int station, int phase);

    //修改礼品卡的userID
    public boolean updateGiftCardID(int userID, int cardID);

    //修改member的状态
    public boolean updateMemberStation(int number, int station);

    //获取某人疯抢会员
    public List<CrazyCompetitionMember> getOneCompetitionMember(int cardID, int userID);

}
